import { registerAs, ConfigService } from '@nestjs/config';
export default registerAs('coze', () => ({
    translate: {
        COZE_BOT_ID: process.env.TRANSLATE_BOT || '7536168939031216167',
        COZE_BASE_URL: process.env.COZE_BASE_URL || 'https://api.coze.cn',
        COZE_BASE_WS_URL: process.env.ZH_COZE_BASE_WS_URL || 'wss://ws.coze.cn',
        COZE_API_KEY: process.env.COZE_API_KEY ?? (() => { throw new Error('缺少环境变量 ZH_COZE_API_KEY'); })(),
    },
    frontMatter: {
        COZE_BOT_ID: process.env.FRONTMATTER_BOT || '7540179402575855650',
        COZE_BASE_URL: process.env.COZE_BASE_URL || 'https://api.coze.cn',
        COZE_BASE_WS_URL: process.env.COZE_INTERPRETATION_BASE_WS_URL || 'wss://ws.coze.cn',
        COZE_API_KEY: process.env.COZE_API_KEY ?? (() => { throw new Error('缺少环境变量 COZE_INTERPRETATION_API_KEY'); })(),
    },
}))